package com.obst.data.pojo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable

public class UserInfo {
	@PrimaryKey
	
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	
	private Key key;
	
	@Persistent
	private String accountID;
	
	@Persistent
	private String name;
	
	@Persistent
	private String email;
	
	@Persistent
	private String password;
	
	@Persistent
	private int gender;
	
	@Persistent
	private int loginType;
	
	@Persistent
	private String loginKey;
	
	private String confirmPassword;
	
	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public int getLoginType() {
		return loginType;
	}

	public void setLoginType(int loginType) {
		this.loginType = loginType;
	}

	public String getLoginKey() {
		return loginKey;
	}

	public void setLoginKey(String loginKey) {
		this.loginKey = loginKey;
	}
	
	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}
	
	public UserInfo(Key key, String accountID, String name, String email,
			String password, int gender, int loginType, String loginKey) {
		super();
		this.key = key;
		this.accountID = accountID;
		this.name = name;
		this.email = email;
		this.password = password;
		this.gender = gender;
		this.loginType = loginType;
		this.loginKey = loginKey;
	}
}
